<?php
/**
 * 系统消息
 * Create by PhpStorm
 * User: lijia
 * Data: 2020/8/11
 * Time: 10:20
 */

namespace app\api\controller;


use app\api\business\MessageBus;

class Message extends UserCommon
{

    public function __construct(){
        parent::__construct();
    }

    /**
     * 系统消息
     * @return \think\response\Json
     */
    public function index(){
        try {
            $list = (new MessageBus())->get();
            return resJson(200,'ok',$list);
        } catch (\Exception $e){
            return resJson(1001,'获取信息失败');
        }
    }



}